package com.ai.bitcoin.jpa.dao;

import com.ai.bitcoin.jpa.entity.BccInfoEdit;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @author Jason
 * @date 2018/4/4
 **/
public interface BccInfoEditDao extends JpaRepository<BccInfoEdit, String> {
    List<BccInfoEdit> findByBccIdAndFieldTypeAndFieldState(String bccId, String fieldType, String fieldState);

    List<BccInfoEdit> findByBccIdAndFieldKeyAndFieldState(String bccId, String fieldKey, String fieldState);

    List<BccInfoEdit> findByBccId(String bccId);

    List<BccInfoEdit> findByBccIdAndFieldState(String bccId, String state);

}
